package com.aids_malaria.http.response;

import com.aids_malaria.util.GsonUtil;

import java.io.Serializable;

public class EaProcess implements Serializable {

    private String identity_code;
    private int record_no; // 诊断记录号
    private int record_seq; //记录次数
    private String indoor_spray_agent; //室内喷洒药剂
    private String outdoor_spray_agent; // 室外喷洒药剂
    private int out_range; // 室外喷洒范围
    private int bednets_mu_rate; // 每月使用蚊帐率
    private String investor;
    private String create_time;
    private String update_time;
    private String spray_time;

    public static EaProcess copyFromPack(EaProcessPack eaProcessPack){
        EaProcess eaProcess = new EaProcess();
        eaProcess.setIdentity_code(eaProcessPack.getIdentity_code());
        eaProcess.setRecord_no(eaProcessPack.getRecord_no());
        eaProcess.setRecord_seq(eaProcessPack.getRecord_seq());
        eaProcess.setIndoor_spray_agent(eaProcessPack.getIndoor_spray_agent());
        eaProcess.setOut_range(eaProcessPack.getOut_range());
        eaProcess.setBednets_mu_rate(eaProcessPack.getBednets_mu_rate());
        eaProcess.setInvestor(eaProcessPack.getInvestor());
        eaProcess.setCreate_time(eaProcessPack.getCreate_time());
        eaProcess.setUpdate_time(eaProcessPack.getUpdate_time());
        eaProcess.setSpray_time(eaProcessPack.getSpray_time());

        eaProcess.setOutdoor_spray_agent(GsonUtil.beanToJson(eaProcessPack.getOutdoor_spray_agent_json()));

        return eaProcess;
    }

    public String getIdentity_code() {
        return identity_code;
    }

    public void setIdentity_code(String identity_code) {
        this.identity_code = identity_code;
    }

    public int getRecord_no() {
        return record_no;
    }

    public void setRecord_no(int record_no) {
        this.record_no = record_no;
    }

    public int getRecord_seq() {
        return record_seq;
    }

    public void setRecord_seq(int record_seq) {
        this.record_seq = record_seq;
    }

    public String getIndoor_spray_agent() {
        return indoor_spray_agent;
    }

    public void setIndoor_spray_agent(String indoor_spray_agent) {
        this.indoor_spray_agent = indoor_spray_agent;
    }

    public String getOutdoor_spray_agent() {
        return outdoor_spray_agent;
    }

    public void setOutdoor_spray_agent(String outdoor_spray_agent) {
        this.outdoor_spray_agent = outdoor_spray_agent;
    }

    public int getOut_range() {
        return out_range;
    }

    public void setOut_range(int out_range) {
        this.out_range = out_range;
    }

    public int getBednets_mu_rate() {
        return bednets_mu_rate;
    }

    public void setBednets_mu_rate(int bednets_mu_rate) {
        this.bednets_mu_rate = bednets_mu_rate;
    }

    public String getInvestor() {
        return investor;
    }

    public void setInvestor(String investor) {
        this.investor = investor;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getSpray_time() {
        return spray_time;
    }

    public void setSpray_time(String spray_time) {
        this.spray_time = spray_time;
    }

    @Override
    public String toString() {
        return "EaProcess{" +
                "identity_code='" + identity_code + '\'' +
                ", record_no=" + record_no +
                ", record_seq=" + record_seq +
                ", indoor_spray_agent='" + indoor_spray_agent + '\'' +
                ", outdoor_spray_agent='" + outdoor_spray_agent + '\'' +
                ", out_range=" + out_range +
                ", bednets_mu_rate=" + bednets_mu_rate +
                ", investor='" + investor + '\'' +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", spray_time='" + spray_time + '\'' +
                '}';
    }
}
